import java.io.IOException;
import java.io.PrintStream;



public class Main {
	public static void main(String[] args){
		java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
		java.io.PrintStream realOutput = System.out; // Guardamos el objeto de salida original.
		QuitaH quita = new QuitaH(realOutput);
		
		System.setOut(new java.io.PrintStream(baos)); // Al escribir algo, lo mandara a baos.
		System.out.println("LOL"); // No muestra nada.
		// Desinstalo
		System.setOut(realOutput);
		System.out.println(baos.toString());
		
		quita.instala();
		System.out.println("Hola");
		quita.desinstala();
		System.out.println("Hola");
		
	}
}

